package cn.edu.scau.cmi.liujiaming.chapter09;

import java.util.Date;
import java.text.SimpleDateFormat;
public class Example9_14 {
   public static void main(String args[]) {
      Date nowTime=new Date();
      System.out.println(nowTime);
      String pattern = "yyyy-MM-dd";
      SimpleDateFormat SDF= new SimpleDateFormat(pattern);
      String timePattern=SDF.format(nowTime);
      System.out.println(timePattern);
      pattern = "G yyyy��MMMd��E HHʱmm��ss��z";
      SDF=new SimpleDateFormat("G yyyy��MMMd��E HHʱmm��ss��z");
      timePattern=SDF.format(nowTime);
      System.out.println(timePattern);
      long time=System.currentTimeMillis();
      System.out.println("�����ǹ�Ԫ��:"+time+"����");
    }
}

